<?php
include 'common/check.php';
include 'common/smarty.php';

$polymer        = false;
$pigment        = false;
$dyes           = false;
$additive       = false;
$pearrlescent   = false;

switch(strtolower($_SESSION['hd_category'])) {
    case "polymer":
        $polymer = true;
        break;
    case "pigment":
        $pigment = true;
        break;
    case "dyes":
        $dyes = true;
        break;
    case "additive":
        $polymer = true;
        break;
    case "pearrlescent":
        $polymer = true;
        break;
    default:
        break;
}

$tpl->assign("polymer", $polymer);
$tpl->assign("pigment", $pigment);
$tpl->assign("dyes", $dyes);
$tpl->assign("additive". $additive);
$tpl->assign("pearrlescent", $prearrlescent);
$tpl->display("../templates/material.html");
?>
